From 416459559fc3d5ce9b81f337d88ff17efdbee734 Mon Sep 17 00:00:00 2001 From: Ryan Kaldari Date: Wed, 27 Jul 2011 23:54:21 +0000 Subject: [PATCH] make sure sockets are enabled --- includes/profiler/ProfilerSimpleUDP.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/profiler/ProfilerSimpleUDP.php b/includes/profiler/ProfilerSimpleUDP.php index c11c3205f0..77fdf34341 100644 --- a/includes/profiler/ProfilerSimpleUDP.php +++ b/includes/profiler/ProfilerSimpleUDP.php @@ -19,6 +19,11 @@ class ProfilerSimpleUDP extends ProfilerSimple { # Less than minimum, ignore return; } + + if ( !function_exists( 'socket_create' ) ) + # Sockets are not enabled + return; + } $sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); $plength=0; -- 2.20.1